var wrapper = new Vue({
		el:"#wrapper",
		data:{
			email: '未登录',
			result: '',
			logon: true,
			hot: '',
			user: '',
		},
		methods:{
			getEmail:function(){
				var emil1 = sessionStorage.getItem("email");
				if(emil1 != null){
					this.email = emil1;
					this.logon = !this.logon;
				}
			},
			logout:function(){
				sessionStorage.removeItem("email");
				sessionStorage.removeItem("uuid");
				window.location.reload();
			},
			getHot:function(){
				var that = this;
				axios.get(base_ure+'/essay/hot').then(function(res){
				    if(res.data.code == "200")
				    {
				        that.hot = res.data.data;
				    }
					else{
						alert(res.data.msg);
					}
				},function(err){
				    alert("网络出错！");
				})
			},
			getUser:function(){
				var that = this;
				axios.get(base_ure+'/user/getUser').then(function(res){
				    if(res.data.code == "200")
				    {
				        that.user = res.data.data;
				    }
					else{
						alert(res.data.msg);
					}
				},function(err){
				    alert("网络出错！");
				})
			},
		},
		mounted() {
			
		},
		created(){
			this.getEmail();
			this.getHot();
			this.getUser();
		},
})